package com.caigou.modules.forum.adpter

import com.caigou.comm.base.ext.dareTypeName
import com.caigou.modules.forum.R
import com.caigou.modules.forum.bean.DareResultItemBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/12/21
 */
class DareItemAdapter(dataset: MutableList<DareResultItemBean>) :
    BaseQuickAdapter<DareResultItemBean, BaseViewHolder>(R.layout.item_post_dare_list, dataset) {
    override fun convert(holder: BaseViewHolder, item: DareResultItemBean) {
        holder.setText(R.id.item_post_content_dare_tv_name, "${dareTypeName(item.dareTypeId)}：")
        holder.setText(R.id.item_post_content_dare_tv_content, item.contentDetail)
    }
}